package fr.janua.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

import fr.janua.shared.UserDTO;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface LoginServiceAsync {

	void loginServer(String name, String password, AsyncCallback<UserDTO> callback);

	void loginFromSessionServer(AsyncCallback<UserDTO> callback);

	void changePassword(String name, String newPassword, AsyncCallback<Boolean> callback);

	void logout(AsyncCallback<Void> callback);
}
